/* 
 * File:   TextureCoords.h
 * Author: RedEyedKiller
 *
 * Created on 24 Ιούλιος 2011, 10:28 πμ
 */

#ifndef TEXTURECOORDS_H
#define	TEXTURECOORDS_H

namespace gl
{

class TextureCoords
{
public:

    TextureCoords()
    {
        
    }
    
    TextureCoords(GLdouble x,GLdouble y)
    {
        xy[0] = x;
        xy[1] = y;
    }

    void Apply()
    {
        glTexCoord2dv(xy);
    }

    void SetX(GLdouble x)
    {
        xy[0] = x;
    }

    void SetY(GLdouble y)
    {
        xy[1] = y;
    }
    
    void Set(GLdouble x,GLdouble y)
    {
        xy[0] = x;
        xy[1] = y;
    }

    GLdouble X()
    {
        return xy[0];
    }

    GLdouble Y()
    {
        return xy[1];
    }


private:
    GLdouble xy[2];
};
}


#endif	/* TEXTURECOORDS_H */

